<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" "urlrewrite3.0.dtd">
 <urlrewrite>
    <rule>
    	<from>^(/truyen-tranh)$</from>
    	<to type="forward">/truyen-tranh/trang-chu.htm</to>
    </rule>
    <rule>
    	<from>^(/truyen-tranh/)$</from>
    	<to type="forward">/truyen-tranh/trang-chu.htm</to>
    </rule>
    <rule>
    	<from>^(/truyen-ma)$</from>
    	<to type="forward">/truyen-ma/trang-chu.htm</to>
    </rule>
    <rule>
    	<from>^(/truyen-ma/)$</from>
    	<to type="forward">/truyen-ma/trang-chu.htm</to>
    </rule>
    <rule>
    	<from>^(/truyen-kiem-hiep)$</from>
    	<to type="forward">/truyen-kiem-hiep/trang-chu.htm</to>
    </rule>
    <rule>
    	<from>^(/truyen-kiem-hiep/)$</from>
    	<to type="forward">/truyen-kiem-hiep/trang-chu.htm</to>
    </rule>
    <rule>
    	<from>^(/truyen-tinh-cam)$</from>
    	<to type="forward">/truyen-tinh-cam/trang-chu.htm</to>
    </rule>
    <rule>
    	<from>^(/truyen-tinh-cam/)$</from>
    	<to type="forward">/truyen-tinh-cam/trang-chu.htm</to>
    </rule>
    <rule>
    	<from>^(/truyen-trinh-tham)$</from>
    	<to type="forward">/truyen-trinh-tham/trang-chu.htm</to>
    </rule>
    <rule>
    	<from>^(/truyen-trinh-tham/)$</from>
    	<to type="forward">/truyen-trinh-tham/trang-chu.htm</to>
    </rule>
    <rule>
    	<from>^(/anh-dep/)$</from>
    	<to type="forward">/anh-dep/trang-chu.htm</to>
    </rule>
    <rule>
    	<from>^(/anh-dep)$</from>
    	<to type="forward">/anh-dep/trang-chu.htm</to>
    </rule>
    <outbound-rule encodefirst="true">
	    <note>Remove jsessionid from embedded urls - for urls WITH query parameters</note>
	    <from>^/(.*);jsessionid=.*[?](.*)$</from>
	    <to encode="false">/$1?$2</to>
	</outbound-rule>
	
	<outbound-rule encodefirst="true">
	    <note>Remove jsessionid from embedded urls - for urls WITHOUT query parameters</note>
	    <from>^/(.*);jsessionid=.*[^?]$</from>
	    <to encode="false">/$1</to>
	</outbound-rule>    
 </urlrewrite>